package com.daka.service;

import com.daka.entity.Goods;
import com.daka.vo.response.OffLineGoodsList;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by yangx
 * CreateTime: 2016/12/28 18:24
 */
public interface GoodsService {

    int insert(Goods record);

    Goods selectById(Long id);

    Goods selectByCode(String code);

    List<Goods> selectByStatement(Goods record);

    int selectByStatementCount(Goods record);

    int updateByPrimaryKeySelective(Goods record);

    //首页
    List<Goods> selectAll();
    List<Goods> selectA();
    List<Goods> selectB();

    BigDecimal sumTotal();

    OffLineGoodsList findOffLineGoods();
}
